# -*- coding: utf-8 -*-
'''
Created on Jan 4, 2013

@author: LONG HOANG GIANG
'''

import MySQLdb as mdb

con = mdb.connect(host='127.0.0.1', user='root', passwd='', db='test', charset='utf8')
c = con.cursor()

c.execute("SELECT VERSION()")
print c.fetchall()

con.close()